/**
 * @计算一个数的绝对值
 *
 * @author	 wangshikun <wangshikun2010@gmail.com>
 * @copyright	(c) 2012 wangshikun <wangshikun2010@gmail.com>
 * @license	http://www.opensource.org/licenses/mit-license.php The MIT License
 * @package	default
 * @subpackage	default
 */

#include <stdio.h>
#include <cs50.h>
#include <stdlib.h>

int main(int argc, char *argv[]) {
	int number;

	printf("Type in your number: ");
	scanf("%d", &number);

	if (number < 0) {
		number = -number;
	}

	printf("The absolute value is %d\n", number);
}
